#include <iostream>

#include <string>

#include "SystemManager.cpp"


using namespace std;

int main() {

    SystemManager sysManager;

    while (true) {
        sysManager.printMenu();
        int choice;
        cin >> choice;

        switch (choice) {
            case 1:
                sysManager.addWorker();
                break;
            case 2:
                sysManager.showWorkerInfo();
                break;
            case 3:
                sysManager.deleteWorker();
                break;
            case 4:
                sysManager.updateWorker();
                break;
            case 5:
                sysManager.findWorker();
                break;
            case 6:
                sysManager.sortWorker();
                break;
            case 7:
                sysManager.deleteAll();
                break;
            case 8:
                sysManager.exitSystem();
                break;

            default:
                break;
        }
    }


    system("pause");

    return 0;
}